<table width="100%" id="fx">
	<tr>
			<th>Supplier Id</th>
			<th>Supplier name</th>
			<th>Weekday</th>
			<th>Leadtime</th>
			<th>Order Frequency</th>
	</tr>
	{assign var='c' value=0}
	{foreach from=$arrResult item=result}
			<tr {if ($c % 2 == 1) } class="bg" {/if}>
					{assign var='c' value=$c+1}
				{foreach from=$result item=cell key=f name=i}
					{if ($f != 'status')}
					<td>
						{if ($f=='weekday')}
							<select id="{$f}_{$result.id}"  onchange="update_field('{$result.id}' ,'{$f}')">
								<option value ="mon" {if $cell=="mon"} selected="seleted" {/if}> Monday </option>
								<option value ="tue" {if $cell=="tue"} selected="seleted" {/if}> Tuesday </option>
								<option value ="wed" {if $cell=="wed"} selected="seleted" {/if}> Wednesday </option>
								<option value ="thu" {if $cell=="thu"} selected="seleted" {/if}> Thurday </option>
								<option value ="fri" {if $cell=="fri"} selected="seleted" {/if}> Friday </option>
							</select>
						{elseif ($f=='leadtime')}
						   <input type="text" value="{$cell}"  id="{$f}_{$result.id}" onchange="update_field('{$result.id}', '{$f}')" />
						{elseif ($f=='order_frequency')}
							<select id="{$f}_{$result.id}"  onchange="update_field('{$result.id}' ,'{$f}')">
								<option value ="1" {if $cell=="1"} selected="seleted" {/if}> 1 </option>
								<option value ="2" {if $cell=="2"} selected="seleted" {/if}> 2 </option>
								<option value ="3" {if $cell=="3"} selected="seleted" {/if}> 3 </option>
								<option value ="4" {if $cell=="4"} selected="seleted" {/if}> 4 </option>
							</select>
						{else}
							{$cell}
						{/if}
					</td>  
					{/if}
				{/foreach}
			</tr>
		
	{/foreach}
	</table>
	{include file="styles/paginator.tpl"}